package com.fdd.service.impl;
import com.fdd.service.BookService;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

import java.util.*;

public class BookServiceImpl implements BookService, InitializingBean, DisposableBean {

    public BookServiceImpl() {
        System.out.println("BookServiceImpl::BookServiceImpl()");
    }

    @Override
    public void save() {
        System.out.println("BookServiceImpl::save()");
    }

    @Override
    public void destroy() {
        System.out.println("Destroy ...");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("init ...");
    }
}
